<div id="content">
  <div class="content_inner">
    <div id="main_categories">
      <h2>Users</h2>
      <caption>&nbsp;</caption>
      <table width="100%" cellpadding="0" cellspacing="0" border="0" id="table1" class="tablesorter">
        <thead>
          <tr>
            <th title="Sort by Name" class="tooltip">Name</th>
            <th title="Sort by Description">Username</th>
            <th title="Sort by Status">Email</th>
            <th title="Sort by Status1">Group</th>
            <th title="Sort by Status2">Status</th>
            <th title="Sort by Status2">Score</th>
            <th>Edit</th>
            <th>Delete</th>
          </tr>
        </thead>
        <tbody>
          <?php $i = 0; ?>
          <?php foreach ($users as $user) : ?>
            <tr class="<?php echo ($i%2 == 1)?'row2':'row1'; ?>">
              <td><?php echo $user->getFullName(); ?></td>
              <td><?php echo $user->getUsername(); ?></td>
              <td><?php echo $user->getEmail(); ?></td>
              <td><?php echo $userGroups[$user->getUserGroupId()]; ?></td>
              <td><?php echo $arrStatusList[$user->getIsActive()]; ?></td>
              <td>
                <?php if ($user->getUserGroupId() != 1) : ?>
                  <a href="<?php echo url_for('@user-score?id='.$user->getId()); ?>">View</a></td>
                <?php else : ?>
                  N/A
                <?php endif; ?>
              <td><a href="<?php echo url_for('@user-edit?id='.$user->getId()); ?>">Edit</a></td>
              <td><a name="Are you sure to delete this user?" class="delete" href="#"></a></td>
            </tr>
            <?php $i++; ?>
          <?php endforeach; ?>
            
        </tbody>
      </table>
    </div>
  </div>
  <div class="buttons-add">
    <a href="<?php echo url_for('@user-add'); ?>"><button type="button">Add New</button></a>
  </div>
</div>